<?php

use Phinx\Migration\AbstractMigration;

class AddFieldAuthenticationInUser extends AbstractMigration
{

    public function up()
    {
        $this->table("user")
            ->addColumn("is_identified", 'enum',
                [
                    'values' => 'yes,no',
                    'default' => 'no',
                    'comment' => '租户是否通过认证'
                ]
            )
            ->save();
    }

    public function down()
    {
        $this->table("user")->removeColumn("is_identified")->save();
    }
}
